home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14719 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.lang.c++
  2. Path: netcom.com!marnold
  3. From: marnold@netcom.com (Matt Arnold)
  4. Subject: Re: Turbo C++ won't write 0Ah to file!?!?
  5. Message-ID: <marnoldDp66tr.Atz@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <4jnpcg$nis@tribune.concentric.net>
  8. Date: Mon, 1 Apr 1996 06:17:51 GMT
  9. Sender: marnold@netcom17.netcom.com
  10.  
  11. mikolaj@concentric.com writes:
  12.  
  13. >Turbo C++ 3.0 won't write character 0Ah to a file, instead it writes 0Dh.
  14. >What's the problem? Is this a bug?
  15. >Thanks, Mike.
  16.  
  17. Unless you give us some sample code showing exactly what you are doing,
  18. "won't write character 0AHh" doesn't give a whole bunch to go on.  For
  19. example, what function are you using to "write characters"?
  20.  
  21. Off the top of my head, I might suggest making sure you have the file
  22. open in the right mode.  The behavior of file I/O can be different 
  23. depending on whether you've opened a file in "text" or "binary" mode,
  24. for instance.
  25.  
  26. Regards,
  27. -------------------------------------------------------------------------
  28. Matt Arnold                       |        | ||| | |||| |  | | || ||
  29. marnold@netcom.com                |        | ||| | |||| |  | | || ||
  30. Boston, MA                        |      0 | ||| | |||| |  | | || ||
  31. 617.389.7384 (h) 617.576.2760 (w) |        | ||| | |||| |  | | || ||
  32. C++, MIDI, Win32/95 developer     |        | ||| 4 3 1   0 8 3 || ||
  33. -------------------------------------------------------------------------
  34.